package com.application.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Leader {
    @TableId(type = IdType.ASSIGN_ID)
    private Integer id;
    private String name;
    private String tel;
    private String community;
    private String openid;
    @TableLogic
    private Integer deleted;
    @Version
    private Integer version;

    public Leader(String name, String tel, String openid) {
        this.name = name;
        this.tel = tel;
        this.openid = openid;
    }


}
